package com.demo.flight.mapper;

import com.demo.flight.entity.Flight;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ssy
 * @create 2022-03-23 17:36
 */

@Mapper
public interface FlightMapper {
    void insert(Flight flight);
    void deleteById(Integer flightId);
    List<Flight> selectAll();
    Flight selectOneById(Integer flightId);
    void update(Flight flight);
    int countById(Integer flightId);
    int countByCondition(Flight flight);
}
